<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../js/vue.js" ></script>
	</head>
	<body>
		<div id="app">
		<button @click="a">点击</button>
		</div>
		<script>
			var vm = new Vue({
				el:'#app',
				data:{},
				methods:{
					a:function(){
						alert("你好,李大猪")
					}
				}
			});
		</script>
	</body>
</html>
